<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@page session="true" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>admin</title>
</head>
<body>


<!-- 本页面为无用页面 暂时保留 -->
<h2>标题:${title }</h2>
<h2>信息:${message }</h2>
<!-- 登录成功 -->
<c:if test="${pageContext.request.userPrincipal.name != null  }">
    <h2>welcome you ,${pageContext.request.userPrincipal.name }! |
        <%--<a href="<c:url value='/j_spring_security_logout'/>">Logout</a></h2>--%>

        <a logout-url=“/j_spring_security_logout”
           href="<c:url value='/j_spring_security_logout'/>">Logout</a></h2>


    <form action="/j_spring_security_logout" method="POST">
        <input name="${_csrf.parameterName}" value="${_csrf.token}"/>
        <input type="submit" value="Logout" />
    </form>
</c:if>
</body>
</html>
